package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.YzrPharStock;

public interface IUsePharStockDAO extends CrudRepository<YzrPharStock, String> {
	@Query("select c from YzrPharStock c where c.pharStockStoreId=?1 and c.pharStockMedKind like %?2%")
	public List<YzrPharStock> findByKindtockMedName(String pharStockStoreId,String pharStockMedKind);
	@Query("select c from YzrPharStock c where c.pharStockStoreId=?1 and c.pharStockMedKind like %?2%")
	public List<YzrPharStock> PharStockByKindpage(String pharStockStoreId,String pharStockMedKind,Pageable pageable);
}
